import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


// import { ErrorComponent } from './error/error.component';
import {Page01Component} from './page01/page01.component';
import {Page02Component} from './page02/page02.component';
import { FormComponent } from './form/form.component';

export const routes: Routes = [
	{
		path: '',
		redirectTo: 'app',
		pathMatch: 'full'
	},
	{
		path: 'page01',
		component: Page01Component
	},
	{
		path: 'page02',
		component: Page02Component
	},
	{
		path: 'form',
		component: FormComponent
	},
	// {
	// 	path: 'app',
	// 	loadChildren: './MainComponent/main.module#MainModule'
	// },

];



@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: true })],
  exports: [RouterModule],
})

export class AppRoutesModule { }